package com.zft.userwalletmanager.infrastructure.common.exception;


import com.zft.userwalletmanager.infrastructure.common.enums.ResultCode;
import lombok.Getter;

/**
 * 异常处理
 */
@Getter
public class BizException extends RuntimeException {
    private String message;
    private ResultCode resultCode;

    public BizException(String message) {
        super(message);
    }

    public BizException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
}
